package com.mysoft.gfyx.marketdevelop.controller.tag;

import com.mysoft.framework.modeling.OptionDataController;
import com.mysoft.framework.modeling.dto.Filter;
import com.mysoft.framework.modeling.dto.OptionItem;
import com.mysoft.framework.rpc.annotation.PubService;
import com.mysoft.framework.rpc.contants.RequestPrefix;
import com.mysoft.gfyx.marketdevelop.service.DeveloperService;
import com.mysoft.gfyx.marketdevelop.service.LabelService;
import io.swagger.v3.oas.annotations.tags.Tag;

import javax.annotation.Resource;
import java.util.ArrayList;
import java.util.List;
import java.util.Map;

@Tag(name = "活跃度标签备选项-API")
@PubService(value = "/activityOptionData", prefix = RequestPrefix.API, method = {})
public class ActivityOptionDataController extends OptionDataController {
    @Resource
    private LabelService labelService;

    @Override
    protected List<OptionItem> load(List<Filter> filters, Map<String, String> urlParams) {
        List<OptionItem> result = new ArrayList<>();
        OptionItem item = new OptionItem();
        item.setValue("活跃");
        item.setText("活跃");
        result.add(item);
        return result;
        //return labelService.loadValueTo0ValueTagsByTagName(DeveloperService.TjEntity.Developer, LabelService.LABEL_ACTIVITY);
    }
}
